/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
  // By default, Docusaurus generates a sidebar from the docs folder structure
  // tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],

  // But you can create a sidebar manually
  tutorialSidebar: [
    {
      type: "doc",
      id: "index",
    },
    {
      type: "category",
      label: "Getting Started",
      collapsed: false,
      items: [
        {
          type: "doc",
          id: "installing_devbox",
        },
        {
          type: "doc",
          id: "quickstart",
        },
        {
          type: "doc",
          id: "devbox_global",
        },
      ],
    },
    {
      type: "category",
      label: "Configuring your Project",
      collapsed: true,
      items: [
        {
          type: "doc",
          id: "guides/pinning_packages",
        },
        {
          type: "doc",
          id: "guides/platform_specific_packages",
        },
        {
          type: "doc",
          id: "guides/using_flakes",
        },
        {
          type: "doc",
          id: "guides/scripts",
        },
        {
          type: "doc",
          id: "guides/plugins",
        },
        {
          type: "doc",
          id: "guides/creating_plugins",
        },
        {
          type: "doc",
          id: "guides/services",
        },
      ],
    },
    {
      type: "category",
      label: "Reference",
      collapsed: false,
      items: [
        {
          type: "category",
          label: "CI/CD Reference",
          collapsed: true,
          items: [
            {
              type: "doc",
              id: "continuous_integration/github_action",
            },
          ],
        },
        {
          type: "category",
          label: "CLI Reference",
          collapsed: true,
          link: { type: "doc", id: "cli_reference/devbox" },
          items: [
            {
              type: "autogenerated",
              dirName: "cli_reference",
            },
          ],
        },
        {
          type: "doc",
          id: "configuration",
        },
        {
          type: "doc",
          id: "env_variables",
        },
        {
          type: "category",
          label: "IDE Reference",
          collapsed: true,
          items: [
            {
              type: "doc",
              id: "ide_configuration/direnv",
            },
            {
              type: "doc",
              id: "ide_configuration/eclipse",
            },
            {
              type: "doc",
              id: "ide_configuration/vscode",
            },
            {
              type: "doc",
              id: "ide_configuration/zed"
            }
          ],
        },
      ],
    },
    {
      type: "category",
      label: "Examples",
      link: { type: "doc", id: "devbox_examples/index" },
      items: [
        {
          type: "category",
          label: "Languages",
          collapsed: true,
          items: [
            {
              type: "autogenerated",
              dirName: "devbox_examples/languages",
            },
          ],
        },
        {
          type: "category",
          label: "Databases",
          collapsed: true,
          items: [
            {
              type: "autogenerated",
              dirName: "devbox_examples/databases",
            },
          ],
        },
        {
          type: "category",
          label: "Servers",
          collapsed: true,
          items: [
            {
              type: "autogenerated",
              dirName: "devbox_examples/servers",
            },
          ],
        },
        {
          type: "category",
          label: "Stacks",
          collapsed: true,
          items: [
            {
              type: "autogenerated",
              dirName: "devbox_examples/stacks",
            },
          ],
        },
      ],
    },
    {type: "doc",
      id: "faq",
    },
  ],
};

export default sidebars;
